Optimal. Leaf size=327 \[ -\frac{6 b^2 n^2 \text{PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )}{e}-\frac{6 b^2 n^2 \text{PolyLog}(3,-e x) \left (a+b \log \left (c x^n\right )\right )}{e}+\frac{3 b n \text{PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )^2}{e}+\frac{6 b^3 n^3 \text{PolyLog}(2,-e x)}{e}+\frac{6 b^3 n^3 \text{PolyLog}(3,-e x)}{e}+\frac{6 b^3 n^3 \text{PolyLog}(4,-e x)}{e}+\frac{6 b^2 n^2 (e x+1) \log (e x+1) \left (a+b \log \left (c x^n\right )\right )}{e}-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )-12 a b^2 n^2 x-\frac{3 b n (e x+1) \log (e x+1) \left (a+b \log \left (c x^n\right )\right )^2}{e}+\frac{(e x+1) \log (e x+1) \left (a+b \log \left (c x^n\right )\right )^3}{e}+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3-12 b^3 n^2 x \log \left (c x^n\right )-\frac{6 b^3 n^3 (e x+1) \log (e x+1)}{e}+24 b^3 n^3 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.762996, antiderivative size = 327, normalized size of antiderivative = 1., number of steps used = 24, number of rules used = 16, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.842, Rules used = {2389, 2295, 2370, 2296, 2346, 2302, 30, 6742, 2301, 2411, 43, 2351, 2315, 2374, 6589, 2383} \[ -\frac{6 b^2 n^2 \text{PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )}{e}-\frac{6 b^2 n^2 \text{PolyLog}(3,-e x) \left (a+b \log \left (c x^n\right )\right )}{e}+\frac{3 b n \text{PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )^2}{e}+\frac{6 b^3 n^3 \text{PolyLog}(2,-e x)}{e}+\frac{6 b^3 n^3 \text{PolyLog}(3,-e x)}{e}+\frac{6 b^3 n^3 \text{PolyLog}(4,-e x)}{e}+\frac{6 b^2 n^2 (e x+1) \log (e x+1) \left (a+b \log \left (c x^n\right )\right )}{e}-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )-12 a b^2 n^2 x-\frac{3 b n (e x+1) \log (e x+1) \left (a+b \log \left (c x^n\right )\right )^2}{e}+\frac{(e x+1) \log (e x+1) \left (a+b \log \left (c x^n\right )\right )^3}{e}+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3-12 b^3 n^2 x \log \left (c x^n\right )-\frac{6 b^3 n^3 (e x+1) \log (e x+1)}{e}+24 b^3 n^3 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2389
Rule 2295
Rule 2370
Rule 2296
Rule 2346
Rule 2302
Rule 30
Rule 6742
Rule 2301
Rule 2411
Rule 43
Rule 2351
Rule 2315
Rule 2374
Rule 6589
Rule 2383
Rubi steps
\begin{align*} \int \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x) \, dx &=-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-(3 b n) \int \left (-\left (a+b \log \left (c x^n\right )\right )^2+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e x}\right ) \, dx\\ &=-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}+(3 b n) \int \left (a+b \log \left (c x^n\right )\right )^2 \, dx-\frac{(3 b n) \int \frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{x} \, dx}{e}\\ &=3 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-\frac{(3 b n) \int \left (e \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)+\frac{\left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{x}\right ) \, dx}{e}-\left (6 b^2 n^2\right ) \int \left (a+b \log \left (c x^n\right )\right ) \, dx\\ &=-6 a b^2 n^2 x+3 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-(3 b n) \int \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x) \, dx-\frac{(3 b n) \int \frac{\left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{x} \, dx}{e}-\left (6 b^3 n^2\right ) \int \log \left (c x^n\right ) \, dx\\ &=-6 a b^2 n^2 x+6 b^3 n^3 x-6 b^3 n^2 x \log \left (c x^n\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}+\left (6 b^2 n^2\right ) \int \left (-a-b \log \left (c x^n\right )+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e x}\right ) \, dx-\frac{\left (6 b^2 n^2\right ) \int \frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(-e x)}{x} \, dx}{e}\\ &=-12 a b^2 n^2 x+6 b^3 n^3 x-6 b^3 n^2 x \log \left (c x^n\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}-\left (6 b^3 n^2\right ) \int \log \left (c x^n\right ) \, dx+\frac{\left (6 b^2 n^2\right ) \int \frac{(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{x} \, dx}{e}+\frac{\left (6 b^3 n^3\right ) \int \frac{\text{Li}_3(-e x)}{x} \, dx}{e}\\ &=-12 a b^2 n^2 x+12 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}+\frac{\left (6 b^2 n^2\right ) \int \left (e \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)+\frac{\left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{x}\right ) \, dx}{e}\\ &=-12 a b^2 n^2 x+12 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}+\left (6 b^2 n^2\right ) \int \left (a+b \log \left (c x^n\right )\right ) \log (1+e x) \, dx+\frac{\left (6 b^2 n^2\right ) \int \frac{\left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{x} \, dx}{e}\\ &=-12 a b^2 n^2 x+12 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{6 b^2 n^2 (1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(-e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}-\left (6 b^3 n^3\right ) \int \left (-1+\frac{(1+e x) \log (1+e x)}{e x}\right ) \, dx+\frac{\left (6 b^3 n^3\right ) \int \frac{\text{Li}_2(-e x)}{x} \, dx}{e}\\ &=-12 a b^2 n^2 x+18 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{6 b^2 n^2 (1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(-e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_3(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}-\frac{\left (6 b^3 n^3\right ) \int \frac{(1+e x) \log (1+e x)}{x} \, dx}{e}\\ &=-12 a b^2 n^2 x+18 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{6 b^2 n^2 (1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(-e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_3(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}-\frac{\left (6 b^3 n^3\right ) \operatorname{Subst}\left (\int \frac{x \log (x)}{-\frac{1}{e}+\frac{x}{e}} \, dx,x,1+e x\right )}{e^2}\\ &=-12 a b^2 n^2 x+18 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{6 b^2 n^2 (1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(-e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_3(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}-\frac{\left (6 b^3 n^3\right ) \operatorname{Subst}\left (\int \left (e \log (x)+\frac{e \log (x)}{-1+x}\right ) \, dx,x,1+e x\right )}{e^2}\\ &=-12 a b^2 n^2 x+18 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3+\frac{6 b^2 n^2 (1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(-e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_3(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}-\frac{\left (6 b^3 n^3\right ) \operatorname{Subst}(\int \log (x) \, dx,x,1+e x)}{e}-\frac{\left (6 b^3 n^3\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{-1+x} \, dx,x,1+e x\right )}{e}\\ &=-12 a b^2 n^2 x+24 b^3 n^3 x-12 b^3 n^2 x \log \left (c x^n\right )-6 b^2 n^2 x \left (a+b \log \left (c x^n\right )\right )+6 b n x \left (a+b \log \left (c x^n\right )\right )^2-x \left (a+b \log \left (c x^n\right )\right )^3-\frac{6 b^3 n^3 (1+e x) \log (1+e x)}{e}+\frac{6 b^2 n^2 (1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac{3 b n (1+e x) \left (a+b \log \left (c x^n\right )\right )^2 \log (1+e x)}{e}+\frac{(1+e x) \left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{e}+\frac{6 b^3 n^3 \text{Li}_2(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(-e x)}{e}+\frac{3 b n \left (a+b \log \left (c x^n\right )\right )^2 \text{Li}_2(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_3(-e x)}{e}-\frac{6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \text{Li}_3(-e x)}{e}+\frac{6 b^3 n^3 \text{Li}_4(-e x)}{e}\\ \end{align*}
Mathematica [A] time = 0.177127, size = 584, normalized size = 1.79 \[ \frac{3 b n \text{PolyLog}(2,-e x) \left (a^2+2 b (a-b n) \log \left (c x^n\right )-2 a b n+b^2 \log ^2\left (c x^n\right )+2 b^2 n^2\right )-6 b^2 n^2 \text{PolyLog}(3,-e x) \left (a+b \log \left (c x^n\right )-b n\right )+6 b^3 n^3 \text{PolyLog}(4,-e x)-3 a^2 b e x \log \left (c x^n\right )+3 a^2 b \log (e x+1) \log \left (c x^n\right )+3 a^2 b e x \log (e x+1) \log \left (c x^n\right )+6 a^2 b e n x-3 a^2 b n \log (e x+1)-3 a^2 b e n x \log (e x+1)+a^3 (-e) x+a^3 e x \log (e x+1)+a^3 \log (e x+1)-3 a b^2 e x \log ^2\left (c x^n\right )+3 a b^2 \log (e x+1) \log ^2\left (c x^n\right )+3 a b^2 e x \log (e x+1) \log ^2\left (c x^n\right )+12 a b^2 e n x \log \left (c x^n\right )-6 a b^2 n \log (e x+1) \log \left (c x^n\right )-6 a b^2 e n x \log (e x+1) \log \left (c x^n\right )-18 a b^2 e n^2 x+6 a b^2 n^2 \log (e x+1)+6 a b^2 e n^2 x \log (e x+1)-18 b^3 e n^2 x \log \left (c x^n\right )+6 b^3 n^2 \log (e x+1) \log \left (c x^n\right )+6 b^3 e n^2 x \log (e x+1) \log \left (c x^n\right )-b^3 e x \log ^3\left (c x^n\right )+6 b^3 e n x \log ^2\left (c x^n\right )+b^3 \log (e x+1) \log ^3\left (c x^n\right )+b^3 e x \log (e x+1) \log ^3\left (c x^n\right )-3 b^3 n \log (e x+1) \log ^2\left (c x^n\right )-3 b^3 e n x \log (e x+1) \log ^2\left (c x^n\right )+24 b^3 e n^3 x-6 b^3 n^3 \log (e x+1)-6 b^3 e n^3 x \log (e x+1)}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.246, size = 0, normalized size = 0. \begin{align*} \int \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) ^{3}\ln \left ( ex+1 \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{{\left (b^{3} e x -{\left (b^{3} e x + b^{3}\right )} \log \left (e x + 1\right )\right )} \log \left (x^{n}\right )^{3}}{e} + \frac{-{\left (e x -{\left (e x + 1\right )} \log \left (e x + 1\right ) + 1\right )} b^{3} \log \left (c\right )^{3} - 3 \,{\left (e x -{\left (e x + 1\right )} \log \left (e x + 1\right ) + 1\right )} a b^{2} \log \left (c\right )^{2} - 3 \,{\left (e x -{\left (e x + 1\right )} \log \left (e x + 1\right ) + 1\right )} a^{2} b \log \left (c\right ) -{\left (e x -{\left (e x + 1\right )} \log \left (e x + 1\right ) + 1\right )} a^{3} + \int \frac{3 \,{\left ({\left (b^{3} e \log \left (c\right )^{2} + 2 \, a b^{2} e \log \left (c\right ) + a^{2} b e\right )} x \log \left (e x + 1\right ) \log \left (x^{n}\right ) +{\left (b^{3} e n x -{\left (b^{3} n +{\left ({\left (e n - e \log \left (c\right )\right )} b^{3} - a b^{2} e\right )} x\right )} \log \left (e x + 1\right )\right )} \log \left (x^{n}\right )^{2}\right )}}{x}\,{d x}}{e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (b^{3} \log \left (c x^{n}\right )^{3} \log \left (e x + 1\right ) + 3 \, a b^{2} \log \left (c x^{n}\right )^{2} \log \left (e x + 1\right ) + 3 \, a^{2} b \log \left (c x^{n}\right ) \log \left (e x + 1\right ) + a^{3} \log \left (e x + 1\right ), x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \log \left (c x^{n}\right ) + a\right )}^{3} \log \left (e x + 1\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]